package com.ss.android.article.base.feature.detail2.e.a;

import android.view.View;

import com.ss.android.article.base.app.AppData;
import com.ss.android.article.share.e.b;
import com.ss.android.article.share.entity.a;
import com.ss.android.common.callback.CallbackCenter;

final class d implements b {
    private final CommonBizInteractor a;

    d(CommonBizInteractor arg1) {
        this.a = arg1;

    }

    public final boolean a(a arg7, View arg8, com.ss.android.article.share.c.a arg9) {
        boolean v0 = true;
        boolean v1 = false;
        if(arg7 != null) {
            switch(arg7.e) {
                case 1: {
                    if(this.a.mShareWaySaver != null) {
                        this.a.mShareWaySaver.save(1);
                    }

                    v0 = false;
                    break;
                }
                case 2: {
                    if(this.a.mShareWaySaver != null) {
                        this.a.mShareWaySaver.save(2);
                    }

                    v0 = false;
                    break;
                }
                case 3: {
                    if(this.a.mShareWaySaver != null) {
                        this.a.mShareWaySaver.save(3);
                    }

                    v0 = false;
                    break;
                }
                case 4: {
                    if(this.a.mShareWaySaver != null) {
                        this.a.mShareWaySaver.save(4);
                    }

                    v0 = false;
                    break;
                }
                case 12: {
                    v0 = false;
                    break;
                }
                case 13: {
                    this.a.d();
                    break;
                }
                case 14: {
                    AppData.isNightMode();
                    this.a.mAppData.aE();
                    CallbackCenter.notifyCallback(com.ss.android.j.b.callbackTypeNightModeChanged, new Object[0]);
                    if(arg9 == null) {
                        return v0;
                    }

                    arg9.f();
                    arg9.e();
                    break;
                }
                case 15: {
                    v0 = false;
                    break;
                }
                case 16: {
                    CommonBizInteractor v1_1 = this.a;
                    if(!v1_1.hasView()) {
                        return v0;
                    }

                    if(v1_1.mNewDetailContext.article == null) {
                        return v0;
                    }

                    if(v1_1.mDetailHelper == null) {
                        return v0;
                    }

                    v1_1.mDetailHelper.a(v1_1.mNewDetailContext.article, v1_1.mNewDetailContext.adId);
                    break;
                }
                default: {
                    v0 = false;
                    break;
                }
            }

        label_7:
            v1 = v0;
        }

        return v1;
    }
}

